<?php

class ActionIndex extends BaseAction
{
    public function run()
    {
        $this->template->iPendingTariffOrdersCnt = TariffPlan::model()->countByAttributes(array('status' => 'pending', 'is_first' => 0));
        $this->template->iApprovedTariffOrdersCnt = TariffPlan::model()->countByAttributes(array('status' => 'approved'));
        $this->template->iRejectedTariffOrdersCnt = TariffPlan::model()->countByAttributes(array('status' => 'rejected'));
    }
}